package com.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.entity.MerchantCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (MerchantCategory)表数据库访问层
 *
 * @author makejava
 * @since 2020-11-21 09:47:55
 */
@Mapper
public interface MerchantCategoryMapper extends BaseMapper<MerchantCategory> {

    List<MerchantCategory> getCategoryGoodsListByMerchantId(int id);

    List<MerchantCategory> searchSomeByPage(@Param("superSearchKeyWord") String superSearchKeyWord, @Param("merchantCategory") MerchantCategory merchantCategory);

    Integer insertSelective(MerchantCategory merchantCategory);

    Integer update(MerchantCategory merchantCategory);
    //查询所有类别
    List<MerchantCategory> getCategoryList(Integer merchantId);
}
